﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using EIS.Obj;

namespace EIS.ClientUtility
{
    public class ShowErrorMessageBox
    {
        public static void Show(string text)
        {
            MessageBoxButtons buttons = new MessageBoxButtons();
            if (!GlobalVariable.Instance.ShowingError)
            {
                GlobalVariable.Instance.ShowingError = true;
                MessageBox.Show(text, "Error", buttons, MessageBoxIcon.Error);
                GlobalVariable.Instance.ShowingError = false;
            }

        }
    }
}
